<?php
namespace Api\Controller;
use Think\Controller;
class CourseController extends Controller {

    /*俱乐部列表  开发人：周弈男*/
    public function allcourse(){
       $coachid=$_GET['coachid'];
       $course=M('course');
       $course=$course->where("coach=$coachid")->select();
       if($course==null){
          $this->ajaxReturn($course);
       }else{
          $this->ajaxReturn($course);
       }
    }
    /**/
    public function getclubcourse(){
      $clubid=$_GET['clubid'];
      $course=M('course');
      $course=$course->where("club=$clubid")->select();
      if ($course==null) {
        $this->ajaxReturn($course);
      }else{
        $this->ajaxReturn($course);
      }
    }



}